from flask import Flask,render_template
from flask_cors import CORS

from api.apiMain import api

app = Flask(__name__, static_url_path='/upload', static_folder='upload')
# 创建蓝图
app.register_blueprint(api, url_prefix='/api')
CORS(app)

@app.route('/')
def hello():
    return 'hello'

if __name__ == '__main__':
    app.run(debug=True,port=5000)
